package com.dragon.loan.repository;

import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.dragon.common.repository.mybatis.MyBatisRepository;

@MyBatisRepository
public interface AcLoanApplyInfoExtMapper {

	/**
	 * 根据loanId查询扩展记录数（正常情况最多只会存在1条）
	 * @param loanId
	 * @return
	 */
	public Integer queryExtInfoCountByLoanId(@Param("loanId") String loanId);
	
	/**
	 * 根据loanId修改扩展字段
	 * @param columnValue  键值对关系， 键为字段名，值为字段的值
	 * @param loanId
	 */
	public void updateExtInfoByLoanId(@Param("columnValue")Map<String, Object> columnValue, @Param("loanId")String loanId);
	
	/**
	 * 根据loanId新增扩展字段
	 * @param columnValue  键值对关系， 键为字段名，值为字段的值
	 * @param loanId
	 */
	public void insertExtInfo(@Param("columnValue")Map<String, Object> columnValue);
	
	
	/**
	 * 根据loanId查询进件扩展信息
	 * @param loanId
	 * @return
	 */
	public Map<String, String> queryExtInfoByLoanId(@Param("loanId") String loanId);
	
	/**
	 * 根据loanId查询进件扩展信息
	 * 
	 * @param loanId
	 * @return
	 */
	public Map<String, String> getExtInfoByLoanId(@Param("loanId") String loanId);
}
